-
-
0public class ViewWeb extends Activity { WebView webview; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedIns
-
0//This is a fast code to get the last known location of the phone. If there is no exact gps-information it falls back to the network-based l
-
0/* First, get the Display from the WindowManager */ Display display = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay()
-
0AlertDialog alertDialog = new AlertDialog.Builder(this).create(); alertDialog.setTitle("Title"); alertDialog.setMessage("Mess
-
0oncreate: LinearLayout lvs = (LinearLayout) findViewById(R.id.indexLea); LinearLayout layout = new LinearLayout(this); TextView tx = new Te
-
0private static long back_pressed; @Override public void onBackPressed() { if (back_pressed + 2000 > System.currentTimeMillis()) super.onB